﻿using JetBrains.Annotations;
using System;
using Volo.Abp.Domain.Entities;

namespace Sample.Novel.Domain.Books.Entites
{
    /// <summary>
    /// 章节内容
    /// </summary>
    public class ChapterText
        :Entity<Guid>
    {
        public Guid ChapterId { get;set; }
        public Chapter Chapter { get; set; }
        public string Content { get; set; }
        public string AuthorMessage { get;set;}

        protected ChapterText() { 
            
        }

        public ChapterText(
            [NotNull] string content,
            [CanBeNull] string authorMessage
            )
        {
            Content = content;
            AuthorMessage = authorMessage;
        }   
    }
}